<extend name="Base/base" />
<block name='head'>
    <link rel="stylesheet" href="/Public/Admin/css/personal.css"/>
</block>
<block name="content"> 
    <section class="layui-larry-box">
        <div class="larry-personal">
            <div class="layui-tab">
                <blockquote class="layui-elem-quote news_search">
                    <div class="layui-inline">
                        <a class="layui-btn layui-btn-normal newsAdd_btn" href="{:U('Index/backmenu')}">返回</a>
                    </div>
                </blockquote>

                <!-- 表单项 -->
                <form class="layui-form" action="">
                    <div class="layui-form-item">
                        <label class="layui-form-label"><span class="c-red">*</span>流程名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="flow_name" class="layui-input" value="{$info.flow_name}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><span class="c-red">*</span>流程分类</label>
                        <div class="layui-input-block">
                            <select name="flow_sort" class="layui-input" lay-verify="required">
                                <foreach name="sorts" item="sort">
                                    <option value="{$sort.sort_id}" {$info['flow_sort'] == $sort['sort_id'] ? 'selected' :''}>{$sort.sort_name}</option>
                                </foreach>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><span class="c-red">*</span>排序</label>
                        <div class="layui-input-block">
                            <input type="text" name="flow_no" class="layui-input" value="{$info.flow_no}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">是否首页显示</label>
                        <div class="layui-input-block level">
                            <lable class="input_lable">
                                <input name="is_show" type="radio" id="sex-1" value="1" {$info['is_show'] == 1 ? 'checked' :''}>
                                <label for="sex-1">是</label>
                            </lable>
                            <lable class="input_lable">
                                <input type="radio" id="sex-2" value="0" name="is_show" {$info['is_show'] == 0 ? 'checked' :''}>
                                <label for="sex-2">否</label>
                            </lable>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">图标编码</label>
                        <div class="layui-input-block">
                            <input type="text" name="icon" class="layui-input" value="{$info.icon}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">图标颜色</label>
                        <div class="layui-input-block">
                            <input type="text" name="color" class="layui-input" value="{$info.color}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block button">
                            <input type='hidden' name='id' value='{$info.flow_id}'>
                            <a class="layui-btn btn-submit ajax-post" data-url="{:U('save')}" data-form="">提交</a>
                            <!--<button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
                        </div>
                    </div>
                </form>
                <!-- 完 -->
            </div>
        </div>
    </section>
</block>
<block name="script">
    <script type="text/javascript" src="/Public/Admin/js/common.js"></script>
    <script type="text/javascript">
    </script>    
</block>
